package com.lj.queue.param;

import cn.idev.excel.annotation.ExcelProperty;
import com.lj.queue.entity.DelayQueueMessage;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * <p>
 * 延迟队列消息表 excel导入参数
 * </p>
 *
 * @author lj
 * @since 2025-07-21 16:55:02
 */
@Data
public class DelayQueueMessageImportParam {

    /**
     * 消息内容
     */
    @ExcelProperty("消息内容")
    private String message;

    /**
     * 预计时间
     */
    @ExcelProperty("预计时间")
    private LocalDateTime expectTime;

    public DelayQueueMessage toEntity() {
        DelayQueueMessage entity = new DelayQueueMessage();
        entity.setMessage(message);
        entity.setExpectTime(expectTime);
        return entity;
    }
}
